package com.tbm.common.util;

/**
 * 基础Tool工具
 */
public class ToolUtil {

    //此方法将字符串首字母大写
    public static String getFirstUpper(String fildeName){
        byte[] items = fildeName.getBytes();
        items[0] = (byte) ((char) items[0] - 'a' + 'A');
        return new String(items);
    }

    //此方法将字符串首字母小写
    public static String getFirstLower(String fildeName){
        byte[] items = fildeName.getBytes();
        items[0] = (byte) ((char) items[0] + 'a' - 'A');
        return new String(items);
    }
    
    
    public static void main(String args[]){
        try {
            Class o = Class.forName("com.tbm.entity.JsonEntity");
            Object o1 = o.newInstance();
            System.out.println(o1.toString());



        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
    }

}
